package cn.swust.designpatternlearningplatform.dao;

import cn.swust.designpatternlearningplatform.dao.sql.TestPaperDaoSql;
import cn.swust.designpatternlearningplatform.domain.entity.TestPaper;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.Set;

@Mapper
public interface TestPaperDao {
    @DeleteProvider(type = TestPaperDaoSql.class,method = "deleteTestPaper")
    void deleteTestPaper(String testId);
    @InsertProvider(type = TestPaperDaoSql.class,method = "addTestPaper")
    void addTestPaper(TestPaper testPaper1);

    @SelectProvider(type = TestPaperDaoSql.class,method = "getPaperName")
    Set<String> getPaperName(String testId);
}
